Method for measuring a length and electronic slide caliper

ABSTRACT

A method and an electronic slide caliper serve for measuring a length. The slide caliper comprises a rule and a slide which is arranged on the rule for longitudinal displacement and which is provided with two sensors which are offset relative to each other in the longitudinal direction in such a way that the zero passages of the signals generated by the sensors will not coincide. In order to be able to measure the lengths even in the presence of considerable drifts, the zero passages (ND) of the signals are determined by determining first maximum values (MX) and minimum values (MN) of the signal values (U) and deriving thereafter the zero passages (ND) as arithmetic mean value. By taking the average of a larger number of zero passages one then determines the respective zero level (U N ).

The present invention relates to a method for measuring a length bymeans of an electronic slide caliper comprising a rule and slidearranged on the said rule for longitudinal displacement, a marking whichis provided on the rule and which comprises longitudinal marks disposedperiodically in the longitudinal direction in a grid pattern, andcomprising further at least two sensors arranged on the slide andresponding to the marking, the said sensors being offset relative toeach other by a certain amount which is not equal to n times half thegrid pitch sand which is a whole number so that when the slide isdisplaced along the rule periodic signals generated by the sensors areshifted in phase relative to each other, and comprising furtherswitching means for adding and/or subtracting the pulses derived fromthe signals as a function of the sign of the phase shift.

The invention further relates to an electronic slide caliper of the typedescribed above.

A method and slide caliper of the before-mentioned kind have been knownfrom U.S. Pat. No. 4,226,024.

In the case of the known slide caliper, the rule is provided withferromagnetie longitudinal marks disposed over the length of the rule inequidistant distribution. The slide is provided with twomagnetoresistive sensors which are offset in longitudinal direction byan amount equal to 2 nπ+π/2, 2π being the grid pitch of the longitudinalmarks. When the slide is displaced along the rule, the twomagnetoresistive sensors generate substantially sinoidal signals whichare shifted in phase relative to each other just by π/2. Depending onthe direction in which the slide is displaced along the rule, the phaseshift is positive or negative.

In the case of the known slide caliper, the signals generated by themagnetoresistive sensors are at first amplified and then passed acrossthreshold module in order to transform the sinoidal signals intopulse-shaped signals. The pulses are then counted by a calculator, whichis arranged down-stream of the threshold module and which is notdescribed in more detail, the counting direction being dependent on therelative phase position of the signals of the magnetoresistive sensors.

It is a disadvantage of the known method and the known slide caliperthat processing of the sensor signals gets increasingly prone to errorswhen DC signals are superimposed upon the sensor signals as driftsignals or generally as disturbing signals. In addition, no precautionshave been taken in the case of the known method and the known slidecaliper to cope with the situation when the slide is displaced along therule so quickly that additional dynamic errors occur.

Now, it is the object of the present invention to improve the method andthe caliper slide of the type described above in such n way that safeand reliable proceasing of the sensor signals is possible even in thepresence of strong DC signals, or signals of low frequency, and thateven high speeds of displacement of the slide on the rule will not giverise to measuring errors.

Starting out from the method described at the outset, this object isachieved according to the invention by the process steps of:

Scanning periodically at least one of the signals at a predeterminedscanning rate;

storing the scanned signal values;

comparing successive signal values;

generating a first characteristic value for a rise and a secondcharacteristic value for a decrease between the successive signalvalues;

storing at any time the last but one signal value as maximum, for atransition from the first characteristic value to the secondcharacteristic value, or as minimum, for a transition from the secondcharacteristic value to the first characteristic value:

deriving the arithmetic mean value from successive maximum signal valuesand minimum signal values;

storing the mean values as zero-potential values;

comparing the signal values with the respective zero-potential value;

generating a third characteristic value for signal values which areabove the zero-potential value, and a fourth characteristic value forsignal values which are below the zero-potential value;

storing at any time the last signal value as zero passage, for atransition between the third characteristic value and the fourthcharacteristic value; and

counting the number of zero passages.

Starting out from the slide caliper described at the outset, the objectunderlying the present invention is solved by the invention by the factthat the switching means comprise:

First means for scanning periodically at least one of the signals at apredetermined scanning rate;

second means for storing the scanned signal values;

third means for comparing successive signal values;

fourth means for generating a first characteristic value for a rise andsecond characteristic value for a decrease between the successive signalvalues;

fifth means for storing at any time the last but one signal value asmaximum, for a transition from the first characteristic value to thesecond characteristic value, or as minimum, for a transition from thesecond characteristic value to the first characteristic value;

sixth means for deriving the arithmetic mean value from successivemaximum signal values and minimum signal values;

seventh means for storing the mean values as zero-potential values;

eighth means for comparing the signal values with the respectivezero-potential value;

ninth means for generating a third characteristic value for signalvalues which are above the zero-potential value, and a fourthcharacteristic value for signal values which are below thezero-potential value;

tenth means for storing at any time the last signal value as zeropassage, for a transition between the third characteristic value and thefourth characteristic value; and

eleventh means for counting the number of zero passages.

The object underlying the invention is solved in this manner fully andperfectly, firstly because by scanning the signals periodically at ahigh scanning rate the signals of the sensors can be detected in anreliable way. Due to the fact that the zero passages are deriveddirectly from the maximum and minimum values of the signals measured, DCcomponents or similar components are no longer critical because maximumand minimum values of the signals measured will always stand outcharacteristically, and this even if DC drifts or other disturbingquasi-stationary signals should be superimposed upon the measuringsignal proper. On the other hand, it would not be possible in thepresence of such distrubed measuring conditions to record the zeropassages directly in a reliable way.

In order to enable even short-time disturbances to be averaged out, itis further possible, according to an advantageous further improvement ofthe invention, to subject the zero-potential values as such to atime-averaging step.

According to a preferred further development of the method according tothe invention, a zero passage is detected when the value recorded ontransition between the third characteristic value and the fourthcharacteristic value is lower or higher than the zero-potential value bya predetermined minimum value.

To provide a hysteresis in this manner provides the advantage thatpossible short-time variations are averaged out and a zero passage isrecorded only when the value recorded at any time is notably above orbelow the zero-potential value valid from time to time.

According to other particularly preferred embodiments of the methodaccording to the invention, both signals are scanned using the samescanning rate, and the direction of counting the number of zero passagesof one of the signals is set as a function of the first or the secondcharacteristic value, respectively, of that value of the one signalwhich corresponds to the zero passage. The counting direction thendepends alternatively either on the third or on the fourthcharacteristic value of that signal value which is recorded by thesensor of the other signal simultaneously with the zero passage of theone signal, or on the first or second characteristic value of the zeropassage of the other signal which precedes that zero passage.

In both cases, the direction of movement of the slide on the scale canbe detected reliably, and this directional detection can be made use offor every zero passage of each of the signals. This provides a total offour measuring points and/or counting points per grid pitch so that theresolution of the longitudinal measurement is equal to one fourth of thegrid pitch.

According to another particularly preferred group of embodiments of themethod according to the invention, the signals are scanned offset intime by the switching time of the switching means, and when zeropassages are detected in both signals in two scanning operations, whichare separated only by the switching time, the common zero passage iscounted twice.

This feature provides the advantage, on the one hand, that the greatestpart of the electronic switching means has to be provided only once, thetwo signals being scanned successively using the same switching means.Now, the switching time between the two scanning operations, which isdue to technical reasons and which is a constant, may lead to errorsbecause the influence of the switching time on the determination of thephase shift between the two signals gets the more disturbing the morerapidly the slide moves along the rule. In the extreme case, it may evenhappen, due to the finite switching time, that the zero passages of thetwo signals coincide or come to lie in the same time window, asdetermined by the scanning rate. In order to avoid faulty counts in thiscase, it is provided according to the before-mentioned embodiment of theinvention that the respective count is counted twice.

A particularly good effect is achieved in this case in particular whenthe counting direction is locked once a double zero passage has beendetected as mentioned before.

This feature provides the advantage that the processing time in theswitching means can be reduced because it is now only necessary todetect the zero passages, without having to determine the countingdirection in addition. Errors cannot occur in this case as in thepresence of high speeds of displacement of the slide along the rule, itis extremely improbable. for physical reasons, that the direction ofmovement of the slide along the rule should be reversed since any suchreversal of the direction of movement would require an extreme peakacceleration and, thus, very high actuating forces. Consequently, aslong as the high speed of displacement of the slide along the rulecontinues, it is sufficient to record only the zero passages and tocontinue counting in the counting direction determined last.

According to another embodiment of the invention, this condition may beterminated upon detection of another double zero passage which can beinterpreted as a criterion indicating that the speed of displacement ofthe slide along the rule has dropped to a lower value with theconsequence that it now becomes necessary again to determine thecounting direction separately for each zero passage.

Other advantages of the invention will appear from the specification andthe attached drawing.

It is understood that the features that have been described before andwill be explained hereafter may be used not only in the describedcombinations, but also in any other combination, or individually,without leaving the scope and intent of the present invention.

Certain embodiments of the invention will now be described in moredetail with reference to the drawing in which:

FIG. 1 shows, in greatly enlarged scale, a cross-sectional view, takenin the longitudinal direction, of the rule and the slide of a slidecaliper according to the invention, which may be employed for carryingout the method according to the invention;

FIG. 2 illustrates measuring signals as typically produced with the aidof the arrangement according to FIG. 1;

FIGS. 3 to 6 show typical evolutions of measuring signals illustratingdifferent operating conditions of the slide caliper;

FIG. 7 shows a representation of a measuring signal, in the presence ofdisturbing signals;

FIG. 8 shows an enlarged detail of the representation of FIG. 7,illustrating the determination of characteristic values and ofcharacteristic points of the measuring signals;

FIGS. 9 and 10 show representations illustrating the influence which thespeed of displacement of the slide along the rule has in the case of aslide caliper according to the invention; and

FIGS. 11 and 12 show two flow diagrams illustrating two variants of themethod according to the invention.

Regarding now FIG. 1, one can see a cross-sectional representation, ingreatly enlarged scale as compared to the real dimensions, of part of aslide caliper 1. The sectional view of FIG. 1 has been taken along thelongitudinal direction of a rod 10 and a slide 11 of an electronic slidecaliper of the type known generally from U.S. Pat. No. 4,226,024. Formore details, reference is made to that publication.

The slide 11 is arranged to slide on the rule 10 in the longitudinaldirection, as indicated in FIG. 1 by arrow 12 for the movement to theleft (L) and by arrow 13 for the movement to the right (R).

The rule 10 carries a marking 14 comprising marks 15 which consist of aferromagnetic material and which are distributed at equidistantspacings. The marks 15 may have the form of the rungs of a ladder-shapedstructure, embedded in a non-magnetic material 16 of the rule 10.

The slide 11 on its turn carries sensors 17, 18. In FIG. 1, the leftsensor 17 is indicated by S_(A), which is meant to indicate that thesensor 17 or S_(A) generates a signal A, while the right sensor 18 inFIG. 1 is indicated by S_(B) in order to indicate that this sensorgenerates a signal B.

The sensors 17, 18 are likewise embedded in a non-magnetic material 19inside the slide 11. The sensors 17, 18 may be designed as inductivesensors, Hall sensors, magneto-resistive sensors, or the like.

It should be noted in this connection that the field-sensitive sensors17, 18 indicated in FIG. 1 are to be understood as an example only, itbeing without any importance for the invention whether field sensitivesensors, capacitive sensors, optical sensors or other lengh-measuringsystems are employed.

What matters in the present connection is the fact that the sensors 17,18 must be offset in the longitudinal direction by a certain amount.This amount must be determined in such n way that the signals A, B,which are generated by the sensors 17, 18 as the slide 11 is displacedalong the rule 10 and which have an approximately sinoidai curve, willnot coincide in their zero positions. As this would be the case at 0° or180° or a multiple of 180°, it is preferred to arrange the sensors 17,18 in such a way that the signals A, B generated by them are shifted inphase by 90°, as is known as such.

If the grid pitch of the marks 15 of the marking 14 is defined by 2π,then the longitudinal distance between the sensors 17, 18 may be equal,for example, to n.2.π+π/2, as indicated in FIG. 1.

If in the arrangement illustrated in FIG. 1 the slide 11 is now movedalong the rule 10 at normal speed, the sensors 17, 18 generate signals Aand B as illustrated in FIG. 2.

It will be readily appreciated that the signals A and B have asubstantially sinoidal curve and that their electfie period is equal tothe amount 2π. As has been mentioned before, the phase shift is 90°,although this must not necessarily be so since in principle values otherthan 90° would also be possible, so long as the phase shift is not equalto 0°, 180° or a multiple thereof.

In FIG. 2, reference numeral 25 indicates time marks which are meant tosymbolize a periodic scanning process. The scanning rate, i.e. the timeinterval between the time marks 25 is equal to Δt.

For a practical example of the invention, the geometrical grid pitch 2πof the marking 14 may be 1 mm, for example. When the slide 11 is nowmoved along the rule 10, at a speed of 0.1 m/s, this results in afrequency of 100 Hz for the signals A and B, or in a value of 10 m/s forthe electric period of 2π. If, in contrast, the slide 11 is moved alongthe rule 10 at a higher speed, for example at a speed of 1 m/s, oneobtains a signal frequency of 1 kHz and a period of 1 m/s.

If, in the last-mentioned case, one wishes to have a sufficiently greatnumber of scanning points, then a scanning rate of 4 800 per second, forexample, may be selected, which would correspond to a scanning time Δtof approx. 0.2 ms.

By scanning the signals A, B periodically in the described manner,measuring points are defined on the said signals, one of them beingindicated by 30 for the signal A, another one being indicated by 31 forthe signal B in FIG. 2. Each measuring point 30, 31 stands for aparticular signal value, i.e. the measuring point 30 for a potentialU_(A) and the measuring point 31 for U_(B).

Consequently, when scanning the signals A and B periodically, thecorresponding signal values U_(A) and U_(B) are picked up and recordedfor each of the measuring points 30, 31.

FIGS. 3 to 6 now show different signal curves for different operatingconditions of the slide caliper 1.

FIG. 3 illustrates the case where the slide 11 is displaced along therule 10 in the direction of arrow 30, i.e. to the fight (R). The signalA is now positioned at the left of signal B in the time diagram, shiftedin phase by the before-mentioned 90°.

In FIG. 3, the zero passages of the signals A and B are defined byND_(A) and ND_(B), respectively. The direction of the zero passage, i.e.the gradient of the signal curves, is indicated by the additionalsymbols UP for positive slope, and DOWN for negative slope. In addition,positive signal values are indicated by the symbol (+), negative signalvalues by the symbol (-).

If one now regards FIG. 3, and there in particular the positive-slope(UP) zero passage ND_(A) of the signal A, it can be stated as anadditional criterion for this case, namely the displacement of the slide11 to the right (R) along the rule 10, that the signal B must have anegative signal value (-) B at the time of this zero passage ND_(A)(UP), or that the preceding zero passage ND_(B) (DOWN) of the signal Bmust have had a negative slope.

Correspondingly, it can be said for a positive-slope zero passage ND_(B)(UP) of the signal B that a simultaneous positive signal value (+) A ofthe signal A, or a preceding positive-slope zero passage ND_(A) (UP) ofthe other signal A is an indication of a displacement to the right (R).

FIG. 4 shows the corresponding case for positive-slope zero passages ofthe signals A and B, when the slide 11 has been displaced along the rule10 to the left (L).

For ND_(A) (UP) it can be said that the direction of displacement is (L)when a positive slope is determined, either simultaneously with ND_(A)(UP) for a positive signal value (+) B of the other signal B, or for thepreceding zero passage ND_(B) (UP) of the latter. For the case of thezero passage ND_(B) (UP) of the B signal it can be said that thedirection of displacement is (L) when either the value (-) A of theother signal A is negative at the same time or the preceding zeropassage ND_(A) (DOWN) of the other signal A had a negative slope.

FIGS. 5 and 6 illustrate the corresponding cases for negative-slope zeropassages ND_(A) (DOWN) and ND_(B) (DOWN) of the signals A and B. FIGS. 5and 6 also illustrate the respective additional conditions for the othersignal, for the directions of displacement (R) and (L), respectively.

FIG. 7 shows again a practical example of the evolution over time of thesignal A, but this time in the presence of a disturbance (SG). For thepresent purposes, the disturbance SG is assumed to be a quasi-stationaryquantity, i.e. a quantity similar to a DC voltage which drifts at a verylow frequency. Such disturbances SG may be caused, for example, bytemperature drifts, pressure influences, humidity influences, or thelike.

If one now regards FIG. 7, one realizes that it is rather difficult todefine a reference potential relative to the abscissa of the diagram inFIG. 7.

Now, in order to be able to determine the zero passages ND_(A) in spiteof the presence of the disturbance SG, one proceeds as follows:

If one regards the representation of FIG. 7, one readily recognizes thatthe predominant points of the signal curve are their extreme values,rather than their zero passages. For the purposes of the presentdescription, the signal maxima will be identified hereafter by MX, thesignal minima by MN, and the relevant signal voltages will be identifiedby U_(MX) and U_(MN) ; respectively.

If one now determines the maxima MX and the minima MN in the mannerwhich will be described in more detail below, by reference to FIG. 8,then a signal voltage U_(ND) can be determined for the zero passageND_(A) from the relevanl signal voltages U_(MX) and U_(MN) ; by formingthe arithmetic mean value thereof. Although, depending on the behaviorof the disturbance SG, this arithmetic mean value may not be the exactzero passage, it can still be regarded as a sufficiently goodapproximation for the purposes of the present applications.

Another possibility of averaging short-time disturbing influencesconsists in this connection in taking again the average of the detectedsignal values U_(ND) for the zero passages ND_(A), but this time on atime basis. It is thus possible, for example, to take the arithmeticaverage of the eight last signal values U_(ND) in order to obtain inthis manner a fictitious mean signal value as zero-potential valueU_(ND) to which the respective signal curve is then related.

FIG. 8 shows in this connection a detail of the representation of FIG.7, in enlarged scale.

The curve trace illustrated in FIG. 8 comprises a total of 19 measuringpoints 40 to 58. The real signal voltage U_(S) is indicated by adash-dotted line which connects the measuring points 50 to 58.

Given the fact that the signal voltage U_(S) is scanned in all measuringpoints 40 to 58, and is stored, the signal curve which is built up in astorage of the slide caliper has the approximate shape of a staircasefunction, as illustrated in FIG. 8.

In order to determine the extreme values MX and MN, the system nowchecks if the signal voltage U_(S) has increased or dropped between thepreceding measuring point and the active measuring point. This can beeffected in n simple way by comparing the signal voltages U_(S) of thetwo measuring points. If the signal is found to have increased, a firstcharacteristic value +ΔU is generated, while in the case of a signaldrop a second characteristic value -ΔU is generated. It is well possiblein this connection to allow for a switching hysteresis, for example bydetecting a signal rise only when the signal has risen by more than apredetermined minimum value.

As can be seen best in FIG. 8, the tirst characteristic value +ΔUprevails up to the measuring point 47; then a transition occurs to thesecond characteristic value -ΔU whereafter the signal continues to dropdown to the measuring point 54 where the signal starts to rise again atrates corresponding to the first characteristic value +ΔU.

The moments of transition between the first characteristic value +ΔU andthe second characteristic value -ΔU are indicated in FIG. 8 by t₄₇ andt₅₄.

The present method now detects the transition at the moments t₄₇ andt₅₄, and stores in each case the last but one measuring point, i.e. inthe illustrated example the measuring point 46 and 53, as extremevalues, 46 being stored as the maximum MX and 53 being stored as themaximum MN.

Occasionally, the measuring variation may "jitter" within a period; thismay happen when disturbances of higher frequencies are superimposed onthe relatively low-frequency measuring signal. If in this case everymomentary maximum value and minimum value were detected as minimum ormaximum. one would, therefore, determine fictitious maxima andfictitious minima. In order to avoid this, one may store all maximumvalues and minimum values detected, and determine thereafter as maximumthe highest maximum value determined during a signal period of the basicsignal, and correspondingly as minimum the lowest minimum valuedetermined during the same signal period.

According to the rule discussed in connection with FIG. 7, one can nowderive an arithmetic mean value from the relevant signal voltages U₄₆and U₅₃, and the mean value so determined can then be translated intothe zero-potentional signal U_(N) either directly or by forming theaverage from that value and preceding mean values.

As this operation can be repeated following each newly determinedextreme value MX or MN, this means that the momentary zero-potentialvalue U_(N), can be adjusted every time a new extreme value MX or MNoccurs, as is indicated clearly by the staircase curve of FIG. 8. Thezero-potential value U_(N) so adjusted then remains valid until a newzero-potential value U_(N) is detected at the time of occurrence of thenext extreme value MX or MN, and until the corresponding adjustment hasbeen carried out.

In order to determine the measuring point which is to be valid forfurther processing of the zero passage ND, one further checks if thesignal voltages U_(S) of each of the measuring values 40 to 58determined are higher or lower than the valid zero-potential valuesU_(N).

The result of this check is identified by the third characteristic value+U or -U, respectively.

Regarding now again the curve of FIG. 8, it will be readily seen thatthe signal U_(S) for the measuring points 40 and 41 is still lower thanthe zero-potential signal U_(N) valid at these measuring points, whilethe measuring signal U_(S) of the measuring point 42 is already higherthan the zero-potential signal U_(N). The same applies for the othermeasuring points 43 to 49, whereas for the subsequent measuring point 50to 57 the fourth characteristic value -U is produced again, and thethird characteristic value +U prevails as from the measuring point 58.

For the purposes of the present method, the moments when the measuringsignal rises above or drops below the zero-potential signal U_(N) forthe first time are detected as zero-passage ND. In the case of theexample illustrated in FIG. 8, this occurs at the moments t₄₂, t₅₀ andt₅₈.

If one now combines the transitions between the third characteristicvalue +U and the fourth characteristic value -U; i.e. the occurrence ofzero passages ND with the first characteristic value +ΔU or the secondcharacteristic value -ΔAU prevailing at these points, it is alsopossible to determine the direction of the zero passage as UP or DOWN.

In the case of the example illustrated in FIG. 8 it will be noted that azero passage occurs at the measuring point 42 (transition between thethird characteristic value +U and the fourth characteristic value -U)and that a first characteristic value +ΔU is indicated at that moment.Consequently, the direction of the zero passage ND is UP at themeasuring point 42. Correspondingly, it can be said for the second zeropassage occurring at the moment t₅₀ that the second characteristic value-ΔU prevails so that the direction is DOWN in this case. As regards thethird zero passage at the measuring point 58 illustrated in FIG. 8, theprevailing characteristic value is again the first characteristic value+ΔU so that the direction of this zero passage can be identified againby UP.

It will be further seen in FIG. 8 that, in view of improving themeasuring safety, the zero-potential signal U_(N) is further increasedor reduced, respectively, by a hysteresis potential U_(H), in order toavoid the measuring values from fluctuating about the zero-potentialsignal. These hysteresis potential U_(H) is polarized in each case insuch a way that the signal potential U_(S) must exceed both thezero-potential signal UN and additionally the hysteresis potential U_(H)if a zero passage ND is to be detected.

FIG. 9 shows once more the signal curves A and B, at the time scale ofFIG. 8.

This figure shows additionally the switching time T_(S). The switchingtime has to be considered because for reasons of economy it is desirableto have the signal scanning and processing operations, which have beendiscussed in connection with FIG. 8, effected by the same switchingmeans for both signals A and B. This requires, however, that the twosignals A and B must be scanned and processed one after the other. Thisgives rise to a slight incongruence in time between the two processes,which is characterized by the switching time T_(S) in FIG. 9. Theimportance of the switching time T_(S) results from the fact that it isa constant so that it may lead to a systematic error in thedetermination of the relative phase position of the signals A and B. Thequantity of this phase error depends of course on the frequency of thesignals A and B and, thus, on the speed of displacement of the slide 11along the rule 10, the switching time T_(S) having the effect of a timelag.

FIG. 9 now illustrates the case where the slide 11 is displaced alongthe rule 10 at relatively low speed. The development of the one signalis indicated by A, that of the other signal by B, the dash-dottedrepresentation of B representing the theoretical position of this signalcurve, relative to the signal A. Due to the before-mentioned switchingtime T_(S), however, the detected curve of the signal B has to berecorded as illustrated by the curve B', T_(S) characterizing exactlythe phase shift between the theoretical signal B and the real signal B'as measured.

For the purposes of the present signal evaluation this means that thezero passage ND_(B) (DOWN) of the B signal is displaced to the left inFIG. 9, into a position ND_(B), (DOWN), i.e. that this zero passage getscloser to the zero passage ND_(A) (DOWN) of the signal A.

This is not critical by itself, since this displacement does not yetlead to changes in the operating cases illustrated in FIGS. 3 to 6, orto the criteria for determining the sense of displacement, as discussedin this connection. From the technical point of view, this results fromthe fact that the switching time T_(S) is still substantially smaller inthe case illustrated in FIG. 9 than the basic phase shift π/2 betweenthe signals A and B.

However, when the speed of displacement of the slide 11 along the rule10 increases, the conditions illustrated in FIG. 10 occur, and it can benoted that now the switching time T_(S) is in the same order ofmagnitude as the basic phase shift π/2. The real, measured zero passageND_(B) ' (DOWN) of the B' signal has now moved very close to the zeropassage ND_(A) (DOWN) of the A signal.

FIG. 10, therefore, marks the transition to a condition which does nolonger allow to detect the direction with the aid of the criteriadescribed heretofore since, if the speed of displacement of the slide 11along the rule 10 were further increased beyond the speed illustrated inFIG. 10, the zero passage ND_(B) ' (DOWN) would continue to move to theleft and even move past the zero passage ND_(A) (DOWN) of the one signalA. Then the criteria developed heretofore in connection with FIGS. 3 to6 for the detection of the direction of displacement of the slide 11along the rule 10 would no longer be valid.

In order to exclude any such errors, the present invention proposes todetect any coincidence of the zero passages ND_(A) and ND_(B) ' in ameasuring window, i.e. within a period t. When such a coincidenceoccurs, this is taken as a criterion indicating that a predeterminedupper speed value of the displacement of the slide 11 along the rule 10has been attained. Such a detection has the following dual effect:

On the one hand, a double count is effected in the time window At. as ineffect two zero passages were detected in that time window Δt. On theother hand, once this condition has occurred, one stops detecting thedirection, i.e. the criteria for the detection of the sense ofdisplacement, as developed according to FIGS. 3 to 6, are no longerapplied. Instead, one continues to count in the direction valid at themoment when the coincidence of the zero passages ND_(A) and ND_(B) wasdetected.

From the physical point of view, it is in fact quite safe to do withouta separate detection of the counting direction after the stated point intime. For, if the slide 11 is moved along the rule 10 at that highspeed, it is extremely improbable that a reversal in the sense ofmovement should occur at that high speed, due to the reversal inacceleration connected therewith and the high forces required for thispurpose. Due to physical reasons it is, therefore, safe to assume thatonce the high speed value of the displacement has been reached, thesense of displacement will be maintained until the speed drops againbelow the speed threshold value. However, this can be detected in justthe same manner as has been described before, in order to switch back tothe original operating mode once the second coincidence of the zeropassages ND_(A) and ND_(B) has been detected, from which time on thesense of displacement is determined simultaneously with each zeropassage.

The theory described above applies to the case of asynchronous scanning,i.e. to the case where the two measuring channels are connected to asingle-channel scanning device whose input is connected alternately tothe two measuring channels which fact, due to the finite switching time,gives rise to the errors that have been discussed at some length before.

If instead of the arrangement described before synchronous signalscanning is used, in which case each measuring channel has assigned toit a separate scanning unit, then it is possible in principle tosuppress the described error as there do not occur any switching timesin this case. On the other hand, this does not mean, however, that therewill not occur in this case any coincidence of zero passages within ameasuring window. This effect may indeed occur also when synchronoussunning is employed, though of course only at very much higherfrequencies, i.e. much higher speeds of displacement of the slide alongthe rule. Consequently, the procedure described in the context of thepresent invention can be employed also in connection with thesynchronous operating mode, in order to eliminate the errors which occuronly at higher frequencies.

FIGS. 11 and 12 illustrate once more two variants of the above procedurein the form of flow diagrams.

Reference numeral 60 in FIG. 11 stands for a decision block which servesto determine for each recorded measuring value (for example themeasuring values of the measuring points 40 to 58 in FIG. 8) if there isa zero passage in the signal A, judging by the criteria discussed inconnection with FIG. 8.

If this is not the case, the system inquires in the decision block 61 ifthere is a zero passage at that moment in the parallel channel of thesignal B. If this is not the case, either, no steps are taken at all,and the system proceeds to the next measuring points. If, however, itwas detected in the decision block 61 that whilst there was no zeropassage ND_(A) of the A signal, there was a zero passage ND_(B) of the Bsignal, the system proceeds to the next decision block 62 whichdetermines if the zero passage ND_(B) encountered has a negative (DOWN)or a positive (UP) slope, as has been discussed in detail in connectionwith FIG. 8.

If the slope is negative (DOWN), a further decision block 63 then checksif the polarity or the sign V_(Z) of the parallel signal A was positiveor negative at the moment the zero passage ND_(B) just determinedoccurred. This is done simply by enquiring for the third characteristicvalue +U or the fourth characteristic value -U. If it is found that atthe moment in question the signal A was of negative polarity relative tothe zero-potential signal U_(N), this is interpreted as a displacementto the right (R) and the displacement counter is advanced by one step inthat direction. If the signal A was of positive polarity, the counterrecords a step in the left direction (L).

The same proceeds analogously in a decision block 64 if a positive slope(UP) was determined for the detected zero passage ND_(B).

In the event a zero passage ND_(A) has been detected in the A signalalready in the first decision block 60, it is then inquired in a furtherdecision block 65 whether there is a simultaneous zero passage ND_(B) inthe parallel B signal.

If the answer is no, the further evaluation proceeds in the decisionblocks 66 to 68 by analogy to the process discussed before for thedecision block 62 to 64.

The procedure described before results in a total of eight operatingconditions each of which effects a counting step in the left (L) or inthe right (R) direction. These kinds of operating conditions correspondto the eight operating conditions that have been discussed furtherabove, by reference to FIGS. 3 to 6.

It is a particularity of the decision block 65, that it is additionallycapable of detecting the case discussed before in connection with FIGS.9 and 10, namely that it is capable of detecting n simultaneousoccurrence of zero passages ND_(A) and ND_(B) in both signals A and B;i.e. a coincidence of these two zero passages ND_(A) and ND_(B).

This is achieved on the one hand by setting a FLAG and enquiring on theother hand for the direction of the preceding counting step. This isdone in a further decision block 69. If it is determined that thepreceding counting step was to the left (L), the counter is now advancedby two steps to the left (L), or by two steps to the right (R) if thepreceding counting step was to the right (R).

The fact that the flag has been set now leads to the condition that thefollowing counting processes are effected directly from the "Yes" outputof the decision block 61, or from the "No" output of the decision block65, it being no longer necessary, due. to the high speeds ofdisplacement of the slide 11 along the rule 10 prevailing at that time,to have the direction of displacement detected by the decision blocks 62to 64, or 66 to 68, respectively.

In addition, setting the flag has the effect that when the nextcoincidence of zero passages ND_(A) and ND_(B) occurs. this once morecanes a double count to be effected (decision block 69), while on theother hand the system switches back to normal operation withparticipation of the decision blocks 62 to 64, and 66 to 68.

These conditions are illustrated in FIG. 11 by two additional decisionbloch 69 and 70, with the signal paths indicated by broken lines.

In contrast, FIG. 12 shows once more the variant that has been discussedfurther above, where the direction of the preceding zero passage ND forthe other signal, rather than (decision bloch 63, 64, 67, 68 in FIG. 11)the polarity of the other signal. is taken as the last decisioncriterion for the sense of the displacement. According to FIG. 12, thispurpose is fulfilled by additional decision blocks 71 to 74. For therest, the operating sequence of the flow diagram according to FIG. 12 isidentical to that of FIG. 1, and this also as regards theparticularities relating to high displacement speeds which have beendiscussed in this connection.

It is understood that instead of counting the number of zero passages,it would also be possible to count other events related to the zeropassage, for example the number of maxima or of minima, without leavingthe scope of the present invention.

I claim:
 1. A method for measuring a length by utilizing an electronic slide caliper having a rule and a slide arranged on said rule for displacement thereon in a longitudinal direction, a marking being provided on said rule, said marking comprising longitudinal marks distributed periodically in said longitudinal direction at a grid pitch, said caliper, further, comprising at least two sensors arranged on said slide and responding to said marking, said sensors being offset relative to each other by a predetermined amount (nπ±π/2) unequal to n times half said grid pitch (π) with n being an integer number so that when said slide is displaced along said rule, periodic voltage signals (A, B) generated by said sensors are offset in phase (ΔΦ) relative to each other, said caliper also comprising computing means for numerically processing pulses derived from said signals (A, B) as a function of the sign of said phase offset (ΔΦ), the method comprising the steps of:Scanning periodically at least one of said signals (A, B) at a predetermined scanning rate (Δt) for generating scanned signal values (U_(A), U_(B)); storing said scanned signal values (U_(A), U_(B)); comparing successive ones of said scanned signal values (U₄₀, U₅₈); generating n first characteristic value (+ΔU) upon occurrence of a rise and a second characteristic value (-ΔU) upon occurrence of a decrease between said successive signal values (U₄₀, U₅₈); storing of the respective last but one signal value (U₄₆, U₅₃) as a maximum (MX), upon occurrence of a transition from said first characteristic value (+ΔU) to said second characteristic value (-ΔU), and as a mimimum (MN), upon occurrence of a transition from said second characteristic value (-ΔU) to said first characteristic value (+ΔU); generating an arithmetic mean value from successive maximum signal values (U₄₆) and minimum signal values (U₅₃); storing said arithmetic mean values as zero-voltage values (U_(N)); comparing said signal values (U₄₀ -U₅₈) with said respective zero-voltage value (U_(N)); generating a third characteristic value (+U) during presence of signal values (U₄₂ -U₄₉, U₅₈) which are above said zero-voltage value (U_(N)), and a fourth characteristic value (-U) during presence of signal values (U₄₀ -U₄₁, U₅₀ -U₅₇) being below said zero-voltage value (U_(N)); storing the respective last signal value (U₄₂, U₅₀, U₅₈) as a zero transition (ND), upon occurrence of a transition between said third characteristic value (+U) and said fourth characteristic value (-U); and counting the number of zero transitions (ND).
 2. The method of claim 1, wherein an average zero voltage value is derived from a plurality of successive zero-voltage values (U_(N)) and said signal values (U₄₀ -U₅₈) are compared with said average zero-voltage value.
 3. The method of claim 1, wherein a zero transition (ND) is detected when said zero-voltage value recorded during a transition between said third characteristic value (+U) and said fourth characteristic value (-U) is exceeded in either direction by a predetermined mini mum value (U_(H)).
 4. The method of claim a, wherein both said signals (A, B) are scanned at a common scanning rate (Δt), a direction of counting the number of zero transitions (ND_(A)) of one of salts signals (A) being set as a function of said first (+ΔU) or said second (-ΔU) characteristic value (UP, DOWN) respectively, of that value (U₄₂, U₅₀, U₅₈) of said one signal (A) corresponding to said zero transition (ND_(A)), and being, further, set as a function of said third (+U) or said fourth (-U) characteristic value of said signal value (U_(B) being recorded by said sensor (18) of said other signal (B) simultaneously with said zero transition (ND_(A)) of said one signal (A).
 5. The method of claim 1, wherein both said signals (A, B) are scanned at a common scanning rate (Δt), a direction of counting the number of zero transitions (ND_(A)) of one of said signals (A) being set as a function of said lint (+ΔU) or said second (-ΔU) characteristic value (UP, DOWN), respectively, of that value (U₄₂, U₅₀, U₅₈) of said one signal (A) corresponding to said zero transition (ND_(A)) and being, further, set as a function of said first (+ΔU) or said second (-ΔU) characteristic value (UP, DOWN) of said zero transition (ND_(B)) of said other signal (U_(B)) preceding said zero transition (ND_(A)).
 6. The method of claim 1, wherein said signals (A, B) are scanned offset in time by a switching time (T_(S)) of said computing means, and wherein, when zero transitions (ND_(A), ND_(B)) are detected in both signals (A, B) in two scanning operations, being offset only by said switching time (T_(S)), such joint zero transition (ND_(A), ND_(B)) is counted twice.
 7. The method of claim 6, wherein said counting direction is locked when zero transitions (ND_(A), ND_(B)) are detected in both signals (A, B) in two scanning operations, separated only by said switching time (T_(S)).
 8. The method of claim 7, wherein said locking is terminated upon subsequent detection of further joint zero transitions (ND_(A), ND_(B)) in both signals (A, B) in two scanning operations, separated only by said switch ing time (T_(S)).
 9. An electronic slide caliper having a rule and a slide arranged on said rule for displacement thereon in a longitudinal direction, a marking (14) being provided on said rule (10) comprising longitudinal marks (15) disposed periodically in said longitudinal direction at a grid pitch (2π), said caliper comprising further at least two sensors arranged on said slide and responding to said marking, said sensors being offset relative to each other by a predetermined mount (nπ±π/2) being unequal to n times half said grid pitch (π) with n being an integer number so that when said slide is displaced along said rule, periodic voltage signals (A, B) generated by said sensors are offset in phase (ΔΦ) relative to each other, said caliper comprising, further, computing means for numerically processing pulses derived from said signals (A, B) as a function of a sign of said phase offset (ΔΦ), wherein said computing means comprises:first means for scanning periodically at least one of said signals (A, B) at a predetermined scanning rate (Δt); second means for storing said scanned signal values (U_(A), U_(B)); third means for comparing successive signal values (U₄₀, U₅₈); fourth means for generating a first characteristic value (+ΔU) upon occurrence of a rise and a second characteristic value (-ΔU) upon occurrence of a decrease between said successive signal values (U₄₀, U₅₈); fifth means for storing the respective last but one of said signal values (U₄₆, U₅₃) as a maximum (MX) upon occurrence of transition from said first characteristic value (+ΔU) to said second characteristic value (-ΔU), or as a minimum (MN) upon occurrence of a transition from said second characteristic value (-ΔU) to said first characteristic value (+ΔU); sixth means for deriving an arithmetic mean value from successive maximum signal values (U₄₆) and minimum signal values (U₅₃); seventh means for storing said mean values as zero-voltage values (U_(N)); eighth means for comparing said signal values (U₄₀ -U₅₈) with said respective zero-voltage value (U_(N)); ninth means for generating a third characteristic value (+U) during presence of said signal values (U₄₂ -U₄₉, U₅₈) being above said zero-voltage value (U_(N)), and a fourth characteristic value (-U) during presence of signal values (U₄₀ -U₄₁, U₅₀ -U₅₇) being below said zero-voltage value (U_(N)); tenth means for storing the respective last signal value (U₄₂, U₅₀, U₅₈) as zero transition (ND) upon occurrence of transition between said third characteristic value (+U) and said fourth characteristic value (-U); and eleventh means for counting the number of zero transitions (ND). 